{{ if type === 'all' }}
<div class="search-crumbs">
    <span>{{'PRIVATEMSG_SEARCH_RESULTS' | i18n}}</span>
</div>
{{ else }}
<div class="search-crumbs">
    <span class="first"><a href="javascript:;">{{'PRIVATEMSG_SEARCH_RESULTS' | i18n}}</a></span>
    <span class="arrow">&gt;</span>
    <span class="second-path">{{ type }}</span>
</div>
{{ /if }}
<div class="search-result-box">
    {{ if personList }}
    <div class="search-contacts-box">
        <span class="title">
        <span>{{'PRIVATEMSG_COLLEAGUE' | i18n}}</span>
        {{ if type === 'all' }}
        <a href="javascript:;" class="more">{{'PRIVATEMSG_MORE' | i18n}}</a>
        {{ /if }}
        </span>
        <div class="pm-people-box ">
            <ul class="pm-people-list">
                {{ each personList }}
                <li targetId="{{ $value.userId }}" targetName="{{ $value.userName }}">
                    <div class="show-content clear">
                        <a href="javascript:;">
                            <img class="userpic" src="{{ if $value.smallIcon }}{{ $value.smallIcon }}{{ else }}/static/img/default_face.png{{ /if }}" alt="{{ $value.userName }}" title="{{ $value.userName }}"></a>
                        <div class="right-content">
                            <div class="show-info apply-show-info clear">
                                <a href="javascript:;" class="name" hreftype="user" uid="{{ $value.userId }}" title="{{ $value.userName }}">{{ $value.userName }}</a>
                                <p class="msgex">
                                    <span>{{ $value.departName }}</span>
                                    <span>{{ $value.positionName }}</span>
                                </p>
                            </div>
                        </div>
                    </div>
                </li>
                {{ /each }}
            </ul>
        </div>
    </div>
    {{ /if }}
    {{ if groupList }}
    <div class="search-group-box">
        <span class="title">
        <span>{{'PRIVATEMSG_GROUP' | i18n}}</span>
        {{ if type === 'all' }}
        <a href="javascript:;" class="more">{{'PRIVATEMSG_MORE' | i18n}}</a>
        {{ /if }}
        </span>
        <div class="pm-people-box group-contacts-box">
            <ul class="pm-people-list">
                {{ each groupList }}
                <li pm-id="{{ $value.id }}" pm-type="{{ $value.type }}">
                    <div class="show-content clear">
                        <a href="javascript:;" title="{{ $value.title }}">
                            <img class="userpic grouppic" src="/static/img/v3.0/group_ico_30.png"></a>
                        <div class="right-content">
                            <div class="show-info apply-show-info clear">
                                <p class="groups"><span class="group-name" title="{{ $value.title }}">
                                    {{ $value.title }}
                                </span></p>
                            </div>
                        </div>
                    </div>
                </li>
                {{ /each }}
            </ul>
        </div>
    </div>
    {{ /if }}
</div>